#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}

# copy jar
echo "begin copy hnjfzn-gateway "
cp ../hnjfzn-gateway/target/hnjfzn-gateway.jar ./gateway/jar

echo "begin copy hnjfzn-auth "
cp ../hnjfzn-auth/target/hnjfzn-auth.jar ./auth/jar

echo "begin copy hnjfzn-visual "
cp ../hnjfzn-visual/hnjfzn-monitor/target/hnjfzn-visual-monitor.jar  ./visual/monitor/jar

echo "begin copy hnjfzn-system "
cp ../hnjfzn-modules/hnjfzn-system/target/hnjfzn-system.jar ./modules/system/jar

echo "begin copy hnjfzn-file "
cp ../hnjfzn-modules/hnjfzn-file/target/hnjfzn-file.jar ./modules/file/jar

echo "begin copy hnjfzn-job "
cp ../hnjfzn-modules/hnjfzn-job/target/hnjfzn-job.jar ./modules/job/jar

echo "begin copy hnjfzn-gen "
cp ../hnjfzn-modules/hnjfzn-gen/target/hnjfzn-gen.jar ./modules/gen/jar

